mergMK
Type
library
Description
mergMK is a LiveCode MapKit external that adds a map control which supports showing user location with heading, adding annotation pins and polylines, polygons and circles.
Important: The Map Kit framework uses Google services to provide map data pre-iOS 6. Use of specific classes of this framework (and their associated interfaces) binds you to the Google Maps/Google Earth API terms of service. You can find these terms of service at here.
Associated Syntax
Command
Name | Summary | Syntax |
---|---|---|
mergMKCreate | This command initialises/creates the map but does not display it | mergMKCreate |
mergMKDelete | This command deletes the current map and removes it from the screen if it's currently visible | mergMKDelete |
mergMKSet | Set the properties of the map | mergMKSet <pProperty>, <pValue>, [<pAnimated>] |
mergMKDeleteAnnotation | This command deletes the annotation from the map | mergMKDeleteAnnotation <pAnnotationID> |
mergMKAnnotationSet | Set individual annotation properties | mergMKAnnotationSet <pAnnotationID>, <pProperty>, <pValue> |
mergMKDeleteOverlay | This command deletes the overlay from the map | mergMKDeleteOverlay <pOverlayID> |
mergMKGetDirections | Get directions between two coordinates | mergMKGetDirections <pFromCoordinate>, <pToCoordinate> |
mergMKDirectionsDelete | Delete the directions | mergMKDirectionsDelete <pDirectionID> |
mergMKDirectionsAddPolylineOverlay | Add a polyline overlay showing the directions for a route or a step within a route | mergMKDirectionsAddPolylineOverlay <pDirectionID>, <pRouteNumber>, [<pStepNumber>], [<pLineWidth>], [<pLineColor>] |
Function
Name | Summary | Syntax |
---|---|---|
mergMKGet | Get a map property | mergMKGet(<pProperty>) |
mergMKAddAnnotation | Returns an id for the annotation that was created | mergMKAddAnnotation(<pCoordinate>, <pTitle>, [<pSubtitle>], [<pShowCallout>], [<pAnimateDrop>], [<pPinColor>], [<pDraggable>], [<pCalloutImage>], [<pShowCalloutButton>]) |
mergMKAddAnnotationWithImage | Returns an id for the annotation that was created | mergMKAddAnnotationWithImage(<pCoordinate>, <pTitle>, <pImage>, [<pSubtitle>], [<pShowCallout>], [<pAnimateDrop>], [<pDraggable>], [<pImageCenterOffset>], [<pCalloutImage>], [<pShowCalloutButton>]) |
mergMKAnnotationGet | Get individual annotation properties | mergMKAnnotationGet(<pAnnotationID>, <pProperty>) |
mergMKAddPolylineOverlay | Returns an id for the overlay that was created | mergMKAddPolylineOverlay(<pCoordinates>, [<pLineWidth>], [<pLineColor>]) |
mergMKAddPolygonOverlay | Returns an id for the overlay that was created | mergMKAddPolygonOverlay(<pCoordinates>, [<pLineWidth>], [<pLineColor>], [<pFillColor>]) |
mergMKAddCircleOverlay | Returns an id for the overlay that was created | mergMKAddCircleOverlay(<pCoordinate>, <pRadius>, [<pLineWidth>], [<pLineColor>], [<pFillColor>]) |
mergMKDirectionsRouteGet | Get a property of a directions route | mergMKDirectionsRouteGet(<pDirectionID>, <pRouteNumber>, <pProperty>) |
mergMKDirectionsRouteStepGet | Get a property of a directions route step | mergMKDirectionsRouteStepGet(<pDirectionID>, <pRouteNumber>, <pStepNumber>, <pProperty>) |
Message
Name | Summary | Syntax |
---|---|---|
mergMKUserLocationChanged | This message is sent to the object that created the map control when the user's location is updated on the map | mergMKUserLocationChanged <pCoordinate> |
mergMKRegionChanged | This message is sent to the object that created the map control when the map region is changed either by the user or by script | mergMKRegionChanged <pRegion> |
mergMKMapLoaded | This message is sent to the object that created the map control when the map is loaded | mergMKMapLoaded |
mergMKUserTrackingModeChanged | This message is sent to the object that created the map control when the user tracking mode is changed | mergMKUserTrackingModeChanged <pTrackingMode> |
mergMKAnnotationCalloutTapped | This message is sent to the object that created the map control when the user touches on the callout disclosure icon of an annotation | mergMKAnnotationCalloutTapped <pAnnotationID> |
mergMKAnnotationSelected | This message is sent to the object that created the map control when the user touches an annotation | mergMKAnnotationSelected <pAnnotationID> |
mergMKAnnotationDeselected | This message is sent to the object that created the map control when an annotation pin is deselected (user touches somewhere else) | mergMKAnnotationDeselected <pAnnotationID> |
mergMKAnnotationDropped | This message is sent to the object that created the map control when an annotation pin is dragged and dropped to a new location | mergMKAnnotationDropped <pAnnotationID>, <pCoordinate> |
mergMKDirectionsError | This message is sent to the object that called mergMKGetDirections when there is an error determining directions | mergMKDirectionsError <pFromCoordinate>, <pToCoordinate>, <pError> |
mergMKDirections | This message is sent to the object that called mergMKGetDirections when directions have been determined | mergMKDirections <pFromCoordinate>, <pToCoordinate>, <pDirectionsID>, <pRoutes> |